package com.perceptivesoftware.licensing.client.common.util;

import com.google.gwt.user.client.rpc.IsSerializable;

public enum NPType implements IsSerializable
{
	ADMIN(1L);


	Long type = new Long(0);

	private NPType(final Long type)
	{
		this.type = type;
	}

	public Long getType()
	{
		return type;
	}


	public static NPType getEnumForType(final Long type)
	{
		for (final NPType theEnum : NPType.values())
		{
			if (theEnum.getType().equals(type))
			{
				return theEnum;
			}
		}
		return null;
	}
}